home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / util / pack / xfh132.lzh / XFH / src / gui.h < prev    next >
C/C++ Source or Header  |  1992-09-02  |  2KB  |  34 lines

  1. #define XFHSEMAPHORENAME "« XFH »"
  2.  
  3. struct XFHNode
  4. {
  5.    struct Node xfh_Node; /* ln_Name contains device name without trailing ':' */
  6.    UWORD xfh_Length;     /* length of XFHNode itself (for future enhancements) */
  7.    struct MsgPort *xfh_Handler;   /* MsgPort of this device's handler */
  8.    LONG xfh_PackerID;    /* 'NUKE', 'IMPL', and so on. May be NULL if the */
  9.                          /* user hasn't selected a packer */
  10.                          /* DEFAULT: 0 */
  11.    UBYTE nullbyte;       /* always 0, this will guarantee a NULL-termination */
  12.                          /* for xfh_PackerID when used as a string */
  13.    UBYTE xfh_LowMemory;  /* if !0 use StepDown, create files on disk */
  14.                          /* rather then in RAM, and try in any way to */
  15.                          /* save memory */
  16.                          /* DEFAULT: 0 */
  17.    UBYTE xfh_AutoPack;   /* 0 don't compress files, !0 compress */
  18.                          /* DEFAULT: 0 */
  19.    UBYTE xfh_PackMode;   /* 0...100. Values out of range shall be converted */
  20.                          /* to the packer's default mode */
  21.    BPTR xfh_RootLock;    /* lock on the directory this device is mounted on, */
  22.                          /* or NULL */
  23. /* all fields down to this point are guaranteed to be there. In case of future */
  24. /* enhancements, xfh_Length *MUST* be checked before accessing additional fields. */
  25. };
  26.  
  27. struct XFHSemaphore
  28. {
  29.    struct SignalSemaphore xfh_Semaphore;
  30.    struct List xfh_DeviceList;
  31.    UWORD xfh_Length;              /* length of XFHSemaphore itself */
  32. /* end of fields which will always be there */
  33. };
  34.